﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Relatorios_Relatorio" Codebehind="Relatorio.aspx.cs" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register src="../Usercontrol/wuscSeguranca.ascx" tagname="wuscSeguranca" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>

        <uc1:wuscSeguranca ID="wuscSeguranca1" runat="server" />

        <asp:ObjectDataSource ID="ods_turma" runat="server" 
            SelectMethod="_obter_Turma_matricula" TypeName="Banco.BD_Turma" 
            OldValuesParameterFormatString="original_{0}" onselecting="ods_turma_Selecting">
            <SelectParameters>
                <asp:Parameter Name="TURMA_ID" Type="String" />
                <asp:Parameter Name="TUR_DESCRICAO" Type="String" />
                <asp:Parameter Name="USUARIO_ID" Type="String" />
                <asp:Parameter Name="TURMAS_SEMALUNOS" Type="Boolean" />
            </SelectParameters>
        </asp:ObjectDataSource>

        <asp:ObjectDataSource ID="ods_Matricula" runat="server" 
            onselecting="ods_Matricula_Selecting" SelectMethod="_obter_Matricula_Aluno" 
            TypeName="Banco.BD_Matricula">
            <SelectParameters>
                <asp:Parameter Name="ALUNO_ID" Type="String" />
                <asp:Parameter Name="TODAS" Type="Boolean" />
            </SelectParameters>
        </asp:ObjectDataSource>
                
        <asp:ObjectDataSource ID="ods_Aluno" runat="server" 
            SelectMethod="_obter_Alunogeral" TypeName="Banco.BD_Aluno" 
            onselecting="ods_Aluno_Selecting">
            <SelectParameters>
                <asp:Parameter Name="ALUNO_ID" Type="String" />
                <asp:Parameter Name="PESSOA_ID" Type="String" />
                <asp:Parameter Name="PES_NOME" Type="String" />
                <asp:Parameter Name="BOLSISTA" Type="String" />
                <asp:Parameter Name="TURMA_ID" Type="String" />
                <asp:Parameter Name="PES_PAI" Type="String" />
                <asp:Parameter Name="PES_MAE" Type="String" />
                <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
                <asp:Parameter Name="ALU_STEXCLUIDO" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>

        <asp:ObjectDataSource ID="ods_AlunoTurma" runat="server" 
            SelectMethod="_obter_Aluno_turma" TypeName="Banco.BD_Aluno" 
            onselecting="ods_AlunoTurma_Selecting" 
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:Parameter Name="ALUNO_ID" Type="String" />
                <asp:Parameter Name="PESSOA_ID" Type="String" />
                <asp:Parameter Name="PES_NOME" Type="String" />
                <asp:Parameter Name="BOLSISTA" Type="String" />
                <asp:Parameter Name="TURMA_ID" Type="String" />
                <asp:Parameter Name="PES_PAI" Type="String" />
                <asp:Parameter Name="PES_MAE" Type="String" />
                <asp:Parameter Name="USUARIO_ID" Type="String" />
                <asp:Parameter Name="MATRICULA_ID" Type="String" />
                <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
                <asp:Parameter Name="ALU_STEXCLUIDO" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>

        <asp:ObjectDataSource ID="ods_AnoPagamento" runat="server"  
            SelectMethod="_obter_AnoPagamento" 
            TypeName="Banco.BD_Pagamento" > 
        </asp:ObjectDataSource>

        <asp:ObjectDataSource ID="ods_PagamentoTipo" runat="server" 
            SelectMethod="_obter_Pagamento_tipo" TypeName="Banco.BD_Pagamento_tipo">
            <SelectParameters>
                <asp:Parameter Name="PAGAMENTO_TIPO_ID" Type="String" />
                <asp:Parameter Name="PTO_DESCRICAO" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        
        <asp:HiddenField ID="hid_RELATORIO" runat="server" />

        <div style="float:left; margin-left:0px; margin-top:10px; width:100%;" align="center">
            <asp:Label ID="lbl_gernciador" runat="server" Text="Gerenciador de Relatórios" 
                Font-Bold="True"></asp:Label>
        </div>  
        <div style="float:left; margin-left:0px; margin-top:10px; margin-bottom:20px; width:100%;" align="center">            
            <asp:Label ID="lbl_nameReport" runat="server" Text="Nome do Relatório" 
                Font-Bold="True"></asp:Label>
                <br />
            <asp:Label ID="lbl_errorRerport" runat="server" Text="error" Visible="False"
                Font-Bold="True" ForeColor="#FF3300"></asp:Label>
        </div>
        
        <div style="float:left; margin-left:0px; width:100%;">
            <%--aniversariantes--%>
            <asp:Panel ID="pnlAniversariantes" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_anv_mesreferencia" runat="server" Text="Mês referência" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="anv_mesreferencia" runat="server" 
                    Font-Size="X-Small" Width="100%" Filter="Contains" 
                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                    style="margin-bottom: 0px" >
                        <Items>
                            <telerik:RadComboBoxItem runat="server" Text="" Value="" />
                            <telerik:RadComboBoxItem runat="server" Text="Janeiro" Value="1" />
                            <telerik:RadComboBoxItem runat="server" Text="Fevereiro" Value="2" />
                            <telerik:RadComboBoxItem runat="server" Text="Março" Value="3" />
                            <telerik:RadComboBoxItem runat="server" Text="Abril" Value="4" />
                            <telerik:RadComboBoxItem runat="server" Text="Maio" Value="5" />
                            <telerik:RadComboBoxItem runat="server" Text="Junho" Value="6" />
                            <telerik:RadComboBoxItem runat="server" Text="Julho" Value="7" />
                            <telerik:RadComboBoxItem runat="server" Text="Agosto" Value="8" />
                            <telerik:RadComboBoxItem runat="server" Text="Setembro" Value="9" />
                            <telerik:RadComboBoxItem runat="server" Text="Outubro" Value="10" />
                            <telerik:RadComboBoxItem runat="server" Text="Novembro" Value="11" />
                            <telerik:RadComboBoxItem runat="server" Text="Dezembro" Value="12" />
                        </Items>
                    </telerik:RadComboBox>
                </div>
            </asp:Panel>             

            <%--carnê de mensalidades--%>
            <asp:Panel ID="pnlCarneMensalidades" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_crn_matricula_id" runat="server" Text="Matrículas" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadComboBox ID="crn_matricula_id" runat="server" 
                        Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAO" 
                        DataValueField="MATRICULA_ID" Filter="Contains" 
                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                        EnableLoadOnDemand="True" onitemsrequested="crn_matricula_id_ItemsRequested" 
                        style="margin-bottom: 0px" AllowCustomText="True" >
                    </telerik:RadComboBox>                    
                </div>
                <div style="float:right; margin-right:10px; width:30%; margin-top:5px;">
                    <asp:Label ID="lbl_crn_aluno_id" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadComboBox ID="crn_aluno_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                    DataValueField="ALUNO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="crn_alunos_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        onselectedindexchanged="crn_aluno_id_SelectedIndexChanged" 
                        AutoPostBack="True">                        
                    </telerik:RadComboBox>                    
                </div>   
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_crn_frenteverso" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="crn_frenteverso" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="F">Frente</asp:ListItem>
                            <asp:ListItem Value="V">Verso</asp:ListItem>
                    </asp:RadioButtonList>
                </div>                 
            </asp:Panel>

            <%--dados dos alunos--%>
            <asp:Panel ID="pnlDadosAlunos" runat="server" Width="100%" Visible="False">                 
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_turma_matricula" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="dad_turma_matricula" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="dad_turma_matricula_ItemsRequested" 
                                    style="margin-bottom: 0px">                        
                    </telerik:RadComboBox>                    
                </div>   
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_dad_impressao" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="rbl_dad_impressao" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="V">Visualizar</asp:ListItem>
                            <asp:ListItem Value="P">Imprimir</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbALUNO_ID" runat="server" Font-Size="X-Small" Text="Código Aluno" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbNOME_ALUNO" runat="server" Font-Size="X-Small" Text="Nome" 
                            Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbEND_LOGRADOURO" runat="server" Font-Size="X-Small" 
                            Text="Endereço" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_RESALUNO" runat="server" Font-Size="X-Small" Text="Tel. Residencial" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_COMALUNO" runat="server" Font-Size="X-Small" 
                            Text="Tel. Comercial" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_CELALUNO" runat="server" Font-Size="X-Small" Text="Celular" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPES_EMAIL" runat="server" Font-Size="X-Small" 
                            Text="E-Mail" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPES_DTNASCIMENTO" runat="server" Font-Size="X-Small" Text="Data Nascimento" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbNOME_PAI" runat="server" Font-Size="X-Small" 
                            Text="Nome Pai" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbCPF_PAI" runat="server" Font-Size="X-Small" Text="CPF Pai" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbNOME_MAE" runat="server" Font-Size="X-Small" 
                            Text="Nome Mãe" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbCPF_MAE" runat="server" Font-Size="X-Small" Text="CPF Mãe" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="PSC_TELEFONE_RESPAI" runat="server" Font-Size="X-Small" 
                            Text="Tel. Residencial Pai" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_CELPAI" runat="server" Font-Size="X-Small" Text="Celular Pai" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_RESMAE" runat="server" Font-Size="X-Small" 
                            Text="Tel. Residencial Mãe" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPSC_TELEFONE_CELMAE" runat="server" Font-Size="X-Small" Text="Celular Mãe" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPRF_DESCRICAO_PAI" runat="server" Font-Size="X-Small" Text="Profissão Pai" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbPRF_DESCRICAO_MAE" runat="server" Font-Size="X-Small" Text="Profissão Mãe" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbMAT_DTINCLUSAO" runat="server" Font-Size="X-Small" 
                            Text="Data Matrícula" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbMAT_DATACOBRANCA" runat="server" Font-Size="X-Small" 
                            Text="Data Cobrança" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbMATRICULAS" runat="server" Font-Size="X-Small" 
                            Text="Curso, Nível, Turma" Checked="True" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbMAT_VRMENSALIDADE" runat="server" Font-Size="X-Small" Text="Valor Base" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbALU_BOLSISTA" runat="server" Font-Size="X-Small" Text="Bolsista" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="cbkMAT_ISENTOTXPARTICIPACAO" runat="server" Font-Size="X-Small" Text="Isento da Taxa de Participação" />
                    </div>
                </div>
                <div style="float:right; margin-right:0px; width:100%; margin-top:5px;">
                    <div style="float:right; margin-right:20px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbMAT_TXPARTICIPACAO" runat="server" Font-Size="X-Small" Text="Valor Tx. Participação" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbALU_MEDICAMENTO" runat="server" Font-Size="X-Small" Text="Faz uso de medicamento" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbCNV_DESCRICAO" runat="server" Font-Size="X-Small" Text="Convênio" />
                    </div>
                    <div style="float:right; margin-right:10px; width:23%; margin-top:5px;">
                        <asp:CheckBox ID="ckbALU_OBSERVACAO" runat="server" Font-Size="X-Small" Text="Observação" />
                    </div>
                </div>
                
            </asp:Panel>

            <%--etiquetas--%>
            <asp:Panel ID="pnlEtiquetas" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_etq_turma_id" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="etq_turma_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="etq_turma_id_ItemsRequested" 
                                    style="margin-bottom: 0px">                        
                    </telerik:RadComboBox>                    
                </div>  
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_etq_simples" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="etq_simples" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="N">Normal</asp:ListItem>
                            <asp:ListItem Value="S">Simplificada</asp:ListItem>
                    </asp:RadioButtonList>
                </div> 
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_etq_alunosAtivos" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="etq_alunosAtivos" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div> 
            </asp:Panel>

            <%--ficha de presenca--%>
            <asp:Panel ID="pnlFichaPresenca" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:40%; margin-top:5px;">
                    <asp:Label ID="lbl_pre_turma_id" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="pre_turma_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="pre_turma_id_ItemsRequested" 
                                    style="margin-bottom: 0px">                        
                    </telerik:RadComboBox>                    
                </div> 

                <div style="float:right; margin-right:10px; width:10%;  margin-top:5px; height: 34px;">
                    <asp:Label ID="lbl_pre_mesreferencia" runat="server" Text="Mês ref." 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                            
                    <telerik:RadComboBox ID="pre_mesreferencia" runat="server" 
                                    Font-Size="X-Small" Width="100%" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" 
                                    style="margin-bottom: 0px" AutoPostBack="True">
                        <Items>
                            <telerik:RadComboBoxItem runat="server" />
                            <telerik:RadComboBoxItem runat="server" Text="JANEIRO" 
                                Value="1" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="FEVEREIRO" 
                                Value="2" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="MARÇO" 
                                Value="3" Font-Size="X-Small" />                            
                            <telerik:RadComboBoxItem runat="server" Text="ABRIL" 
                                Value="4" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="MAIO" 
                                Value="5" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="JUNHO" 
                                Value="6" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="JULHO" 
                                Value="7" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="AGOSTO" 
                                Value="8" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="SETEMBRO" 
                                Value="9" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="OUTUBRO" 
                                Value="10" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="NOVEMBRO" 
                                Value="11" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="DEZEMBRO" 
                                Value="12" Font-Size="X-Small" />                                                                                        
                        </Items>
                                        
                    </telerik:RadComboBox>  
                </div>

                <div style="float:right; margin-right:10px; width:7%; margin-top:5px;">
                    <asp:Label ID="lbl_pre_anoreferencia" runat="server" Text="Ano ref." 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                            
                    <telerik:RadComboBox ID="pre_anoreferencia" runat="server" 
                                                Font-Size="X-Small" Width="100%" DataTextField="ANO_DESCRICAO" 
                                                DataValueField="ANO" Filter="Contains" 
                                                EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                EnableLoadOnDemand="True" onitemsrequested="pre_anoreferencia_ItemsRequested" 
                                                style="margin-bottom: 0px" AutoPostBack="True">                        
                                </telerik:RadComboBox>
                </div>                                  
                 
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_pre_alunosAtivos" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="pre_alunosAtivos" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div> 

                
            </asp:Panel>

            <%--entradas financeiras/Dia--%>
            <asp:Panel ID="pnlEntradasDia" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_ent_turma_id" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="ent_turma_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="ent_turma_id_ItemsRequested" 
                                    style="margin-bottom: 0px" TabIndex="3">                        
                    </telerik:RadComboBox>                    
                </div> 
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_ent_pagamneto_tipo_id" runat="server" Text="Tipo Pagamento" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="ent_pagamneto_tipo_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PTO_DESCRICAO" 
                                    DataValueField="PAGAMENTO_TIPO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="ent_pagamento_tipo_id_ItemsRequested" 
                                    style="margin-bottom: 0px" TabIndex="3">                        
                    </telerik:RadComboBox>                    
                </div>
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_ent_alunosAtivos" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="ent_alunosAtivos" runat="server" Font-Size="X-Small" 
                        RepeatDirection="Horizontal" TabIndex="2">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div> 
                <div style="float:right; margin-right:10px; width:10%; margin-top:5px;">
                    <asp:Label ID="lbl_ent_dtFim" runat="server" Text="Data fim" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                    <telerik:RadDateInput ID="ent_dtFim" runat="server" Font-Size="X-Small" 
                        Width="97%" AutoPostBack="True" TabIndex="1">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadDateInput>
                </div>  
                <div style="float:right; margin-right:10px; width:10%; margin-top:5px;">
                    <asp:Label ID="lbl_ent_dtIni" runat="server" Text="Data inicio" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                    <telerik:RadDateInput ID="ent_dtIni" runat="server" Font-Size="X-Small" 
                        Width="97%" AutoPostBack="True">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadDateInput>
                </div>
            </asp:Panel>


            <%--ficha de acompanahamento--%>
            <asp:Panel ID="pnlFichaAcompanhamento" runat="server" Width="100%" Visible="False">
                                
                <div style="float:right; margin-right:20px; width:30%; margin-top:5px;">
                    <asp:Label ID="lbl_fac_aluno_id" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="fac_aluno_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                    DataValueField="ALUNO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="fac_aluno_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        AutoPostBack="True" 
                        onselectedindexchanged="fac_aluno_id_SelectedIndexChanged" 
                        AllowCustomText="True">                        
                    </telerik:RadComboBox>                       
                </div>                   
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_fac_alunosAtivos" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="fac_alunosAtivos" runat="server" Font-Size="X-Small" 
                        RepeatDirection="Horizontal" AutoPostBack="True" 
                        onselectedindexchanged="fac_alunosAtivos_SelectedIndexChanged">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
            </asp:Panel>


            <%--ficha de Avaliação--%>
            <asp:Panel ID="pnlFichaAvaliacao" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_ava_matricula_id" runat="server" Text="Matrículas" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadComboBox ID="ava_matricula_id" runat="server" 
                        Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAO" 
                        DataValueField="MATRICULA_ID" Filter="Contains" 
                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                        EnableLoadOnDemand="True" onitemsrequested="ava_matricula_id_ItemsRequested" 
                        style="margin-bottom: 0px" AutoPostBack="True" 
                        onselectedindexchanged="ava_matricula_id_SelectedIndexChanged" 
                        AllowCustomText="True" >
                    </telerik:RadComboBox>                    
                </div>
                <div style="float:right; margin-right:10px; width:30%; margin-top:5px;">
                    <asp:Label ID="lbl_ava_aluno_id" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="ava_aluno_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                    DataValueField="ALUNO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="ava_aluno_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        AutoPostBack="True" 
                        onselectedindexchanged="ava_aluno_id_SelectedIndexChanged" 
                        AllowCustomText="True">                        
                    </telerik:RadComboBox>                       
                </div>  
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_ava_turma_id" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="ava_turma_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="ava_turma_id_ItemsRequested" 
                                    style="margin-bottom: 0px" TabIndex="3" AutoPostBack="True" 
                        onselectedindexchanged="ava_turma_id_SelectedIndexChanged" 
                        AllowCustomText="True">                        
                    </telerik:RadComboBox>                    
                </div> 
                <div style="float:right; margin-right:10px; width:15%; margin-top:5px;">
                    <asp:Label ID="lbl_ava_alunosAtivos" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="ava_alunosAtivos" runat="server" Font-Size="X-Small" 
                        RepeatDirection="Horizontal" AutoPostBack="True" 
                        onselectedindexchanged="ava_alunosAtivos_SelectedIndexChanged">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div>                 
            </asp:Panel>

            <%--situação mensalidades--%>
            <asp:Panel ID="pnlSituaçãoMensalidades" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:20%; margin-top:5px;">
                    <asp:Label ID="lbl_sit_matricula_id" runat="server" Text="Matrículas" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadComboBox ID="sit_matricula_id" runat="server" 
                        Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAO" 
                        DataValueField="MATRICULA_ID" Filter="Contains" 
                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                        EnableLoadOnDemand="True" onitemsrequested="sit_matricula_id_ItemsRequested" 
                        style="margin-bottom: 0px" >
                    </telerik:RadComboBox>                    
                </div>
                <div style="float:right; margin-right:10px; width:30%; margin-top:5px;">
                    <asp:Label ID="lbl_sit_aluno_id" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadComboBox ID="sit_aluno_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                    DataValueField="ALUNO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="sit_alunos_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        onselectedindexchanged="sit_aluno_id_SelectedIndexChanged" 
                        AutoPostBack="True">                        
                    </telerik:RadComboBox>                    
                </div>
                
                <div style="float:right; margin-right:10px; width:6%; margin-top:5px;">
                    <asp:Label ID="lbl_sit_mensalidadesAberto" runat="server" Font-Bold="True" 
                        Font-Size="X-Small" Text="Em aberto"></asp:Label>
                    <br /><asp:CheckBox ID="sit_mensalidadesAberto" runat="server" Checked="True" />
                </div>

                <div style="float:right; margin-right:10px; width:10%;  margin-top:5px; height: 34px;">
                    <asp:Label ID="lbl_sit_mesreferencia" runat="server" Text="Mês ref." 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                            
                    <telerik:RadComboBox ID="sit_mesreferencia" runat="server" 
                                    Font-Size="X-Small" Width="100%" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" 
                                    style="margin-bottom: 0px" AutoPostBack="True">
                        <Items>
                            <telerik:RadComboBoxItem runat="server" />
                            <telerik:RadComboBoxItem runat="server" Text="JANEIRO" 
                                Value="1" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="FEVEREIRO" 
                                Value="2" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="MARÇO" 
                                Value="3" Font-Size="X-Small" />                            
                            <telerik:RadComboBoxItem runat="server" Text="ABRIL" 
                                Value="4" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="MAIO" 
                                Value="5" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="JUNHO" 
                                Value="6" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="JULHO" 
                                Value="7" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="AGOSTO" 
                                Value="8" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="SETEMBRO" 
                                Value="9" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="OUTUBRO" 
                                Value="10" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="NOVEMBRO" 
                                Value="11" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="DEZEMBRO" 
                                Value="12" Font-Size="X-Small" />                                                                                        
                        </Items>
                                        
                    </telerik:RadComboBox>  
                </div>  
                
                <div style="float:right; margin-right:10px; width:7%; margin-top:5px;">
                    <asp:Label ID="lbl_sit_anoreferencia" runat="server" Text="Ano ref." 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                            
                    <telerik:RadComboBox ID="sit_anoreferencia" runat="server" 
                                                Font-Size="X-Small" Width="100%" DataTextField="ANO_DESCRICAO" 
                                                DataValueField="ANO" Filter="Contains" 
                                                EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                EnableLoadOnDemand="True" onitemsrequested="sit_anoreferencia_ItemsRequested" 
                                                style="margin-bottom: 0px" AutoPostBack="True">                        
                                </telerik:RadComboBox>
                </div> 
                <div style="float:right; margin-right:10px; width:14%; margin-top:5px;">
                    <asp:Label ID="Label3" runat="server" Text="Selecione:" 
                            Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                    <asp:RadioButtonList ID="sit_alunosAtivos" runat="server" Font-Size="X-Small" 
                        RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="A">Alunos</asp:ListItem>
                            <asp:ListItem Value="I">Ex-Alunos</asp:ListItem>
                    </asp:RadioButtonList>
                </div>   
                                 
                
                             
            </asp:Panel>

            <%--ficha de Matricula--%>
            <asp:Panel ID="pnlFichaMatricula" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:30%; margin-top:5px;">
                    <asp:Label ID="lbl_fam_aluno_id" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="fam_aluno_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                    DataValueField="ALUNO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="fam_aluno_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        AutoPostBack="True" 
                        onselectedindexchanged="fam_aluno_id_SelectedIndexChanged">                        
                    </telerik:RadComboBox>                       
                </div>                   
            </asp:Panel>

            <%--ficha de Secretaria--%>
            <asp:Panel ID="pnlFichaSecretaria" runat="server" Width="100%" Visible="False">
                <div style="float:right; margin-right:20px; width:45%; margin-top:5px;">
                    <asp:Label ID="lbl_fsc_turma_id" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="fsc_turma_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione um Aluno" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="fsc_turma_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        AutoPostBack="True">                        
                    </telerik:RadComboBox>                       
                </div>                   
            </asp:Panel>
        </div>
                
        <div style="float:right; margin-right:30px; margin-top:10px; width:100%;" align="right">
            <asp:ImageButton ID="imgbBaixarRelatorio" runat="server" 
                ImageUrl="~/Imagens/botoes_visualizar.png" 
                onclick="imgbBaixarRelatorio_Click" ValidationGroup="camposObrigatorios" />
        </div>

        <div style="float:right; margin-right:20px; width:100%; margin-top:20px;">
            <asp:Panel ID="subPnlDadosFicha" runat="server" Visible="false">                                                               
                <%--dados do aluno--%>
                <div style="float:right; margin-right:0px; width:90%; margin-top:5px;">
                    <div style="float:right; margin-right:0px; width:50%; margin-top:5px;">
                        <asp:Label ID="lbl_ava_matriculas" runat="server" Text="Histórico de Matrículas" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                        <telerik:RadTextBox ID="ava_matriculas" Runat="server" Font-Size="X-Small" 
                            Width="97%" ReadOnly="true">
                            <ReadOnlyStyle BackColor="#D6DCDB" />
                        </telerik:RadTextBox>                
                    </div>    
                    <div style="float:right; margin-right:10px; width:10%; margin-top:5px;">
                        <asp:Label ID="lbl_ava_dtnascimento" runat="server" Text="Dt nascimento" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                        <telerik:RadTextBox ID="ava_dtnascimento" Runat="server" Font-Size="X-Small" 
                            Width="97%" ReadOnly="true">
                            <ReadOnlyStyle BackColor="#D6DCDB" />
                        </telerik:RadTextBox>                
                    </div> 
                    <div style="float:right; margin-right:10px; width:20%; margin-top:5px;">
                        <asp:Label ID="lbl_ava_idade" runat="server" Text="Idade" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                        <telerik:RadTextBox ID="ava_idade" Runat="server" Font-Size="X-Small" 
                            Width="97%" ReadOnly="true">
                            <ReadOnlyStyle BackColor="#D6DCDB" />
                        </telerik:RadTextBox>                
                    </div> 
                </div>
                <%--dados da avaliação--%>
                <div style="float:right; margin-right:0px; width:30%; margin-top:5px;">                    
                    <asp:Label ID="lbl_ava_conceito" runat="server" Text="Parecer" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="ava_conceito" Runat="server" Font-Size="X-Small" 
                            Width="97%" ReadOnly="false">
                            <ReadOnlyStyle BackColor="#D6DCDB" />
                        </telerik:RadTextBox>
                </div>
                <div style="float:right; margin-right:10px; width:14%; margin-top:5px;">
                    <asp:Label ID="lbl_ava_dataavaliacao" runat="server" Text="Data aval." 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                    <telerik:RadDateInput ID="ava_dataavaliacao" runat="server" Font-Size="X-Small" 
                        Width="97%" AutoPostBack="True" TabIndex="1">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadDateInput>
                </div>     
                <div style="float:right; margin-right:10px; width:10%; margin-top:5px;">
                    <asp:Label ID="lbl_aluno_avaliacao_id" runat="server" Text="Código" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="aluno_avaliacao_id" Runat="server" Font-Size="X-Small" 
                        Width="97%" ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>                
                </div>
                <div style="float:right; margin-right:0px; width:90%; margin-top:5px;" 
                    align="right">
                    <%--acompanhamento--%>
                    <asp:Label ID="lbl_ava_descricaoEdit" runat="server" Text="Informações descritivas sobre acompamnhamento da(o) Aluna(o)" Visible="false"
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="ava_descricaoEdit" Runat="server" Font-Size="X-Small"  Visible="false"
                        Width="97%" ReadOnly="false" Rows="2" TextMode="MultiLine">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>    
                    <%--avaliacao--%>
                    <asp:Label ID="lbl_ava_avaliacaomatriculaEdit" runat="server" Text="Informações descritivas sobre Avaliação da(o) Aluna(o)"  Visible="false"
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="ava_avaliacaomatriculaEdit" Runat="server" Font-Size="X-Small"  Visible="false"
                        Width="97%" ReadOnly="false" Rows="2" TextMode="MultiLine">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>            
                </div>
                <div style="float:right; margin-right:0px; width:90%; margin-top:5px;" 
                    align="right">
                    <%--acompanhamento--%>
                    <asp:Label ID="lbl_ava_descricao" runat="server" Text="Informações descritivas sobre acompamnhamento da(o) Aluna(o)" Visible="false"
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="ava_descricao" Runat="server" Font-Size="X-Small"  Visible="false"
                        Width="97%" ReadOnly="true" Rows="4" TextMode="MultiLine">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>    
                    <%--avaliacao--%>
                    <asp:Label ID="lbl_ava_avaliacaomatricula" runat="server" Text="Informações descritivas sobre Avaliação da(o) Aluna(o)"  Visible="false"
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="ava_avaliacaomatricula" Runat="server" Font-Size="X-Small"  Visible="false"
                        Width="97%" ReadOnly="true" Rows="4" TextMode="MultiLine">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>            
                </div>
                <div style="float:right; margin-right:10px; margin-top:10px; width:100%;" align="right">
                    <asp:ImageButton ID="imgbConfirmarDadosFac" runat="server" ImageUrl="~/Imagens/botoes_confirmar.png"
                        OnClick="imgbConfirmarDadosFac_Click" 
                        ValidationGroup="camposObrigatorios" />
                </div>

            </asp:Panel>
        </div>
              
    </form>
</body>
</html>
